Skip to content

feat: add PyTorch setup script for modular installation#117

Merged
cmagina merged 6 commits intoredhat-et:mainfrom
cmagina:pr-03-pytorch-setup-script
Apr 9, 2026
Merged

feat: add PyTorch setup script for modular installation#117
cmagina merged 6 commits intoredhat-et:mainfrom
cmagina:pr-03-pytorch-setup-script

Conversation

@cmagina
Copy link
Copy Markdown
Collaborator

@cmagina cmagina commented Feb 7, 2026

Summary

This PR is part 3 of 11 in the rework modernization effort. It adds the PyTorch setup script as part of the modular framework installation architecture.

Changes:

  • ✅ Add scripts/setup_torch.sh for PyTorch installation and configuration

Features:

  • Downloads PyTorch source from GitHub when not mounted as a volume
  • Installs build dependencies for PyTorch compilation
  • Supports multiple installation modes via INSTALL_TORCH environment variable:
    • source: Build from source (with auto-download if not mounted)
    • release, nightly, test: Install wheels from PyPI
    • skip: Skip PyTorch installation
  • Provides flexible configuration for different container setups

Why this change?

PyTorch is a core framework used by Triton, vLLM, and other projects. This dedicated setup script:

Testing:

Dependencies:

Related PRs:

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Configurable PyTorch installation: support for source builds, release/nightly/test wheels, or skipping.
    • New installer script to manage PyTorch install modes and tool selection.
    • Optional host-provided PyTorch mount into containers and an environment variable to control install behavior.
  • Chores

    • Container images updated to include the installer.
    • CI/workflows now detect changes to the installer script and run image builds accordingly.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 30, 2026

📝 Walkthrough

Walkthrough

Adds a new PyTorch installation script and integrates it into developer tooling: CI workflow path triggers, Docker images, Makefile container options, and devsetup/devinstall orchestration are updated to delegate PyTorch installation to the new installer.

Changes

Cohort / File(s) Summary
Workflow trigger configuration
\.github/workflows/amd-image.yml, \.github/workflows/cpu-image.yml, \.github/workflows/nvidia-image.yml
Extended push and pull_request paths filters to include scripts/devinstall_torch.sh.
Dockerfile updates
dockerfiles/Dockerfile.triton, dockerfiles/Dockerfile.triton-amd, dockerfiles/Dockerfile.triton-cpu
Added COPY of scripts/devinstall_torch.sh into image at /workspace/bin/devinstall_torch.
New installer
scripts/devinstall_torch.sh
Added new executable Bash installer supporting source, release, nightly, test flows; includes pip helper, CUDA/ROCm normalization, repo checkout/submodules, dependency install, and wheel selection logic.
Makefile and orchestration
Makefile, scripts/devinstall_triton.sh, scripts/devsetup.sh
Makefile: added torch_path and INSTALL_TORCH, mounts and env passthrough. devinstall_triton.sh: delegate Torch installation to devinstall_torch and localize pip args. devsetup.sh: persist INSTALL_TORCH and related vars; invoke devinstall_torch when requested.

Sequence Diagram(s)

sequenceDiagram
  participant Dev as Developer / CI trigger
  participant CI as GitHub Actions
  participant Image as Dockerfile build
  participant Container as Run container (Makefile)
  participant DevSetup as devsetup/devinstall_triton
  participant TorchInstaller as devinstall_torch
  participant PyTorchRepo as PyTorch repo / PyPI

  Dev->>CI: push change (includes devinstall_torch.sh)
  CI->>Image: build images (Dockerfiles copy script)
  Dev->>Container: run_container (Makefile) sets INSTALL_TORCH / mounts torch_path
  Container->>DevSetup: run devsetup.sh / devinstall_triton.sh
  DevSetup->>TorchInstaller: invoke devinstall_torch (release/nightly/source/test)
  TorchInstaller->>PyTorchRepo: clone/build or pip install wheels
  TorchInstaller-->>DevSetup: install complete
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 20.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title clearly and concisely describes the main change: adding a PyTorch setup script for modular installation, which aligns with the primary file addition (scripts/devinstall_torch.sh) and the overall PR objectives.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@cmagina cmagina force-pushed the pr-03-pytorch-setup-script branch 2 times, most recently from 294eac2 to f61a04f Compare March 30, 2026 23:42
@cmagina cmagina requested a review from hinriksnaer March 31, 2026 13:17
@cmagina cmagina force-pushed the pr-03-pytorch-setup-script branch 2 times, most recently from 96a56df to 67d97a4 Compare April 2, 2026 17:17
git submodule update --init --recursive

if [ -n "${TORCH_GITREF:-}" ]; then
git checkout ""
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like TORCH_GITREF might be missing here

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, that is quite a miss, thanks.

if [ -f requirements.txt ]; then
pip_install --group dev
pip_install mkl-static mkl-include
make triton
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this cause us to install triton twice due to the preceding devinstall_triton.sh?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those are the instructions from pytorch for installing build deps.
https://github.com/pytorch/pytorch?tab=readme-ov-file#install-dependencies

Although, re-reading the comment, that one should be left to the dev. Will remove it.

Makefile Outdated
INSTALL_NSIGHT ?=false
user_path ?=
torch_path ?=
user_path ?=
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

double entry

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebase miss

Copy link
Copy Markdown
Collaborator

@hinriksnaer hinriksnaer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left a couple of comments

Add scripts/setup_torch.sh to support PyTorch installation and
configuration within containers. This script:

- Downloads PyTorch source from GitHub when not mounted as a volume
- Installs build dependencies for PyTorch compilation
- Supports installing PyTorch wheels from PyPI (release, nightly, test)
- Provides flexible configuration via INSTALL_TORCH environment variable

The script supports multiple installation modes:
- source: Build from source (with auto-download if not mounted)
- release/nightly/test: Install wheels from PyPI
- skip: Skip PyTorch installation

This is part of the modular script architecture introduced in PR redhat-et#115.

Signed-off-by: Craig Magina <cmagina@redhat.com>
@cmagina cmagina force-pushed the pr-03-pytorch-setup-script branch from d72cc14 to 0964c2e Compare April 8, 2026 16:15
@cmagina cmagina marked this pull request as ready for review April 8, 2026 16:15
Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 5

♻️ Duplicate comments (1)
scripts/devsetup.sh (1)

72-74: ⚠️ Potential issue | 🟠 Major

Avoid potential double Torch installation in setup flow.

This new direct call can duplicate Torch installation if scripts/devinstall_triton.sh already handles INSTALL_TORCH for the same run path, causing unnecessary setup time and possible environment drift.

Suggested guard (if Triton install owns Torch setup)
-if [ "${INSTALL_TORCH:-skip}" != "skip" ]; then
+if [ "${INSTALL_TORCH:-skip}" != "skip" ] && [ "${INSTALL_TRITON:-skip}" = "skip" ]; then
 	run_as_user devinstall_torch "$INSTALL_TORCH"
 fi
#!/bin/bash
# Verify whether scripts/devinstall_triton.sh also installs or delegates Torch.
# Expected: If this finds a direct torch install path, this block should be guarded to avoid duplicate execution.
fd -a 'devinstall_triton.sh'
rg -n -C3 '\bdevinstall_torch\b|\bINSTALL_TORCH\b' scripts/devinstall_triton.sh

As per coding guidelines, "Focus on major issues impacting performance, readability, maintainability and security. Avoid nitpicks and avoid verbosity."

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@scripts/devsetup.sh` around lines 72 - 74, The script can double-install
Torch because scripts/devinstall_triton.sh may already handle INSTALL_TORCH;
update scripts/devsetup.sh so the devinstall_torch invocation is conditional:
detect whether devinstall_triton.sh claims ownership (e.g., an exported flag
like TRITON_HANDLES_TORCH or by grepping devinstall_triton.sh for
INSTALL_TORCH/devinstall_torch) and only call run_as_user devinstall_torch
"$INSTALL_TORCH" when that ownership flag is false or absent; ensure you
reference INSTALL_TORCH and the run_as_user devinstall_torch invocation and add
a clear comment explaining the guard.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@scripts/devinstall_torch.sh`:
- Around line 65-70: The script currently runs git submodule update before
applying TORCH_GITREF which can leave submodules pointing at the wrong commits;
change the order so that if TORCH_GITREF is set the script performs git checkout
"$TORCH_GITREF" first, then run git submodule sync and git submodule update
--init --recursive (or run git submodule sync before checkout and git submodule
update after checkout) to ensure submodules match the checked-out ref; update
the block around TORCH_GITREF, git checkout, git submodule sync, and git
submodule update to reflect this ordering.
- Around line 167-170: The current block only sets PIP_TORCH_INDEX_URL when
compute_platform is non-empty, which lets "nightly"/"test" builds fall back to
PyPI; update the logic around compute_platform/PIP_TORCH_INDEX_URL so that when
the requested channel is a non-stable one (detect via TORCH_VERSION containing
"nightly" or "test" or a TORCH_CHANNEL env var) you still set
PIP_TORCH_INDEX_URL (use pip_torch_index_url_base with compute_platform if
present, otherwise use pip_torch_index_url_base alone) and push it into
pip_install_args; change the code around the compute_platform check that
currently sets PIP_TORCH_INDEX_URL and pip_install_args to handle the
empty-compute_platform case for nightly/test to avoid resolving from default
PyPI.
- Around line 27-33: The current privilege check unconditionally exits for
non-root users without sudo by guarding SUDO, EUID and command -v sudo; change
it so non-root without sudo is allowed when doing wheel-only installs (e.g.,
install modes 'release', 'nightly', 'test') by first detecting the requested
install mode/argument and only enforcing the sudo requirement for modes that
need system package installation. Concretely, inspect the install mode
variable/argument used earlier in the script and wrap the existing
SUDO/EUID/command -v sudo logic so it runs only for non-wheel modes; keep the
SUDO variable, EUID check and command -v sudo usage but skip the exit branch for
wheel-only modes.
- Around line 87-90: The pip_install invocation uses an uv-specific flag
(--group dev) which will fail when pip_install falls back to standard pip;
update the block that checks for requirements.txt to call pip_install -r
requirements.txt (so it works with both uv and pip) and keep the subsequent
pip_install mkl-static mkl-include lines unchanged; locate the pip_install call
in the block that references requirements.txt and replace the uv-specific
--group dev usage with the portable -r requirements.txt form.

In `@scripts/devinstall_triton.sh`:
- Around line 108-115: The install block for Torch currently calls
devinstall_torch with whatever INSTALL_TORCH contains, causing failures when
INSTALL_TORCH=skip; update the conditional in the script around the
INSTALL_TORCH check to explicitly handle the "skip" value by not calling
devinstall_torch (e.g., treat "skip" like unset and bypass installation),
otherwise continue to call devinstall_torch with "release" or the provided valid
value; locate the block using the INSTALL_TORCH variable and the
devinstall_torch function name to implement this guard.

---

Duplicate comments:
In `@scripts/devsetup.sh`:
- Around line 72-74: The script can double-install Torch because
scripts/devinstall_triton.sh may already handle INSTALL_TORCH; update
scripts/devsetup.sh so the devinstall_torch invocation is conditional: detect
whether devinstall_triton.sh claims ownership (e.g., an exported flag like
TRITON_HANDLES_TORCH or by grepping devinstall_triton.sh for
INSTALL_TORCH/devinstall_torch) and only call run_as_user devinstall_torch
"$INSTALL_TORCH" when that ownership flag is false or absent; ensure you
reference INSTALL_TORCH and the run_as_user devinstall_torch invocation and add
a clear comment explaining the guard.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 78b7617d-1bfa-41aa-9a49-9d5273df6fab

📥 Commits

Reviewing files that changed from the base of the PR and between 45d870d and 0964c2e.

📒 Files selected for processing (10)
  • .github/workflows/amd-image.yml
  • .github/workflows/cpu-image.yml
  • .github/workflows/nvidia-image.yml
  • Makefile
  • dockerfiles/Dockerfile.triton
  • dockerfiles/Dockerfile.triton-amd
  • dockerfiles/Dockerfile.triton-cpu
  • scripts/devinstall_torch.sh
  • scripts/devinstall_triton.sh
  • scripts/devsetup.sh

Comment on lines +27 to +33
SUDO=''
if ((EUID != 0)) && command -v sudo &>/dev/null; then
SUDO="sudo"
elif ((EUID != 0)); then
echo "ERROR: $(basename "$0") requires root privileges or sudo." >&2
exit 1
fi
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Privilege check is too broad and blocks wheel-only installs.

This exits early for non-root users without sudo even when running release/nightly/test, which don’t need system package installation.

Suggested fix
-SUDO=''
-if ((EUID != 0)) && command -v sudo &>/dev/null; then
-	SUDO="sudo"
-elif ((EUID != 0)); then
-	echo "ERROR: $(basename "$0") requires root privileges or sudo." >&2
-	exit 1
-fi
+SUDO=''
+if ((EUID != 0)) && command -v sudo &>/dev/null; then
+	SUDO="sudo"
+fi
 install_build_deps() {
 	echo "Installing Torch build dependencies ..."
+	if ((EUID != 0)) && [ -z "${SUDO}" ]; then
+		echo "ERROR: $(basename "$0") requires root privileges or sudo for build dependencies." >&2
+		exit 1
+	fi
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@scripts/devinstall_torch.sh` around lines 27 - 33, The current privilege
check unconditionally exits for non-root users without sudo by guarding SUDO,
EUID and command -v sudo; change it so non-root without sudo is allowed when
doing wheel-only installs (e.g., install modes 'release', 'nightly', 'test') by
first detecting the requested install mode/argument and only enforcing the sudo
requirement for modes that need system package installation. Concretely, inspect
the install mode variable/argument used earlier in the script and wrap the
existing SUDO/EUID/command -v sudo logic so it runs only for non-wheel modes;
keep the SUDO variable, EUID check and command -v sudo usage but skip the exit
branch for wheel-only modes.

Comment on lines +87 to +90
if [ -f requirements.txt ]; then
pip_install --group dev
pip_install mkl-static mkl-include
fi
Copy link
Copy Markdown

@coderabbitai coderabbitai bot Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

tmp="$(mktemp -d)"
trap 'rm -rf "$tmp"' EXIT

git clone --depth 1 https://github.com/pytorch/pytorch.git "$tmp/pytorch"

echo "== Check PyTorch dependency metadata =="
if [ -f "$tmp/pytorch/pyproject.toml" ]; then
  rg -n '^\[dependency-groups\]|^dev\s*=' "$tmp/pytorch/pyproject.toml" || true
fi
rg -n '^' "$tmp/pytorch/requirements.txt" | head -n 30 || true

echo "== Check local pip/uv support for --group =="
pip --help | rg -n -- '--group' || true
if command -v uv >/dev/null 2>&1; then
  uv pip install --help | rg -n -- '--group' || true
fi

Repository: redhat-et/triton-dev-containers

Length of output: 1826


🏁 Script executed:

cat -n scripts/devinstall_torch.sh

Repository: redhat-et/triton-dev-containers

Length of output: 7064


🏁 Script executed:

ls -la | head -20

Repository: redhat-et/triton-dev-containers

Length of output: 1257


🏁 Script executed:

find . -name "requirements.txt" -type f 2>/dev/null | head -10

Repository: redhat-et/triton-dev-containers

Length of output: 57


🏁 Script executed:

grep -n "pip_install" scripts/devinstall_torch.sh | head -20

Repository: redhat-et/triton-dev-containers

Length of output: 522


🏁 Script executed:

grep -r "\-\-group" scripts/

Repository: redhat-et/triton-dev-containers

Length of output: 128


🏁 Script executed:

grep -r "pip_install" . --include="*.sh" 2>/dev/null

Repository: redhat-et/triton-dev-containers

Length of output: 1858


--group dev flag incompatible with fallback to standard pip.

Line 88 uses pip_install --group dev, which relies on uv-specific syntax. Since pip_install falls back to standard pip when uv is unavailable (line 39), this command will fail with an unrecognized flag error if uv is not installed. The file check at line 87 suggests intent to install from requirements.txt, but the command should use -r requirements.txt for portability across both pip and uv.

Suggested fix
 	if [ -f requirements.txt ]; then
-		pip_install --group dev
+		pip_install -r requirements.txt
 		pip_install mkl-static mkl-include
 	fi
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
if [ -f requirements.txt ]; then
pip_install --group dev
pip_install mkl-static mkl-include
fi
if [ -f requirements.txt ]; then
pip_install -r requirements.txt
pip_install mkl-static mkl-include
fi
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@scripts/devinstall_torch.sh` around lines 87 - 90, The pip_install invocation
uses an uv-specific flag (--group dev) which will fail when pip_install falls
back to standard pip; update the block that checks for requirements.txt to call
pip_install -r requirements.txt (so it works with both uv and pip) and keep the
subsequent pip_install mkl-static mkl-include lines unchanged; locate the
pip_install call in the block that references requirements.txt and replace the
uv-specific --group dev usage with the portable -r requirements.txt form.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect, pip install --group dev is supported by both.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cmagina, you're correct — my claim that --group is uv-specific was wrong. pip install --group support for PEP 735 Dependency Groups was added in pip 25.1, so it is indeed supported by both pip (25.1+) and uv.

That said, there's still a subtle issue worth noting: --group installs from pyproject.toml dependency groups, accepting arguments of the form group or path:group — it reads from pyproject.toml, not from requirements.txt. The surrounding if [ -f requirements.txt ] guard checks for a different file format entirely, so the two may not be logically consistent (the guard passes if requirements.txt exists, but the install reads from pyproject.toml). This is separate from the uv/pip question and may be worth a quick look to ensure the intent is correct.

I apologize for the incorrect original comment.


📝 Learnings were identified and not saved (knowledge base disabled). Enable

Comment on lines +167 to +170
if [ -n "${compute_platform:-}" ]; then
PIP_TORCH_INDEX_URL="${pip_torch_index_url_base}/${compute_platform}"
pip_install_args+=("--index-url" "$PIP_TORCH_INDEX_URL")
fi
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

nightly/test may silently miss the intended index.

If no CUDA/ROCm/CPU backend is inferred, no index URL is set, so nightly/test can resolve from default PyPI instead of the nightly/test channel.

Suggested fix
 		if [ -n "${compute_platform:-}" ]; then
 			PIP_TORCH_INDEX_URL="${pip_torch_index_url_base}/${compute_platform}"
 			pip_install_args+=("--index-url" "$PIP_TORCH_INDEX_URL")
+		elif [ "$pip_build" != "release" ]; then
+			# Ensure nightly/test always use the intended channel
+			pip_install_args+=("--index-url" "${pip_torch_index_url_base}/cpu")
 		fi
 	fi
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
if [ -n "${compute_platform:-}" ]; then
PIP_TORCH_INDEX_URL="${pip_torch_index_url_base}/${compute_platform}"
pip_install_args+=("--index-url" "$PIP_TORCH_INDEX_URL")
fi
if [ -n "${compute_platform:-}" ]; then
PIP_TORCH_INDEX_URL="${pip_torch_index_url_base}/${compute_platform}"
pip_install_args+=("--index-url" "$PIP_TORCH_INDEX_URL")
elif [ "$pip_build" != "release" ]; then
# Ensure nightly/test always use the intended channel
pip_install_args+=("--index-url" "${pip_torch_index_url_base}/cpu")
fi
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@scripts/devinstall_torch.sh` around lines 167 - 170, The current block only
sets PIP_TORCH_INDEX_URL when compute_platform is non-empty, which lets
"nightly"/"test" builds fall back to PyPI; update the logic around
compute_platform/PIP_TORCH_INDEX_URL so that when the requested channel is a
non-stable one (detect via TORCH_VERSION containing "nightly" or "test" or a
TORCH_CHANNEL env var) you still set PIP_TORCH_INDEX_URL (use
pip_torch_index_url_base with compute_platform if present, otherwise use
pip_torch_index_url_base alone) and push it into pip_install_args; change the
code around the compute_platform check that currently sets PIP_TORCH_INDEX_URL
and pip_install_args to handle the empty-compute_platform case for nightly/test
to avoid resolving from default PyPI.

"INSTALL_JUPYTER"
"INSTALL_LLVM"
"INSTALL_TOOLS"
"INSTALL_TORCH"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we also need these here as well?

TORCH_GITREF
PIP_TORCH_VERSION
PIP_TORCHVISION_VERSION
PIP_TORCHAUDIO_VERSION
PIP_TORCH_INDEX_URL

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is a miss from the claude assistance. It separated everything very harshly and missed a ton of the details. I should have provided better guidance and feedback during the process. Currently, those things are not even passed in from the Makefile, but when we do the runtime rework they will be added. I'll add these as they should be there for other uses, i.e. direct podman run setups.

cmagina added 5 commits April 8, 2026 13:03
Signed-off-by: Craig Magina <cmagina@redhat.com>
Signed-off-by: Craig Magina <cmagina@redhat.com>
…form

Signed-off-by: Craig Magina <cmagina@redhat.com>
Signed-off-by: Craig Magina <cmagina@redhat.com>
Signed-off-by: Craig Magina <cmagina@redhat.com>
Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@scripts/devinstall_triton.sh`:
- Around line 108-116: The current conditional block incorrectly treats
INSTALL_TORCH=skip as falling through to install release; update the logic
around INSTALL_TORCH so "skip" is explicitly honored: modify the if/elif chain
checking INSTALL_TORCH (the block using INSTALL_TORCH, the string
"source"/"skip" comparisons and the call to devinstall_torch) to first check if
INSTALL_TORCH == "skip" and do nothing (or explicitly echo skipping), then
handle "source" and non-empty non-skip values (call devinstall_torch with the
specified value), and finally default to devinstall_torch release only when
INSTALL_TORCH is unset/empty.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 4dac08d3-0329-4dbc-8204-605ef75b2566

📥 Commits

Reviewing files that changed from the base of the PR and between 0964c2e and b88845f.

📒 Files selected for processing (3)
  • scripts/devinstall_torch.sh
  • scripts/devinstall_triton.sh
  • scripts/devsetup.sh
✅ Files skipped from review due to trivial changes (1)
  • scripts/devinstall_torch.sh
🚧 Files skipped from review as they are similar to previous changes (1)
  • scripts/devsetup.sh

@hinriksnaer hinriksnaer self-requested a review April 9, 2026 02:07
@cmagina cmagina merged commit 42c7c32 into redhat-et:main Apr 9, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants